حل ارور Exception in thread "main" java.util.zip.ZipException: zip END header not found در زمان flutter build apk
راه اول:
1.پروژه فلاتر رو تو یه ادیتور مثل vs code اجرا کنید
2.وارد پوشه android -> gradle -> wrapper -> gradle-wrapper.properties بشید ب
3. You will find "gradle-6.7.1.all.zip" inside gradle-wrapper folder
4. Go to this path: C:\Users\your-user
5. Then go to the wrapper->dists and find "gradle-6.7.1.all" folder
5. Delete this folder.
6. Then come to VSCode and open Terminal.
7. Please make sure that you have stable internet connection then type this command in terminal
8. flutter run
راه دوم :
Android Studio رو اجرا کنید
یه پروژه flutter رو ایجاد کنید
Tools > flutter >Flutter for editing in android studio
صبر کنید تا flutter doctor مشکل و حل کنه. (احتمالن تو پنحره sync باید روی Delete file and sync project کلیک کنید شروع میکنه به دانلود gradle)
💡باید از vpn استفاده کنید